package com.andong.mapper;

import com.andong.domain.entity.AdminAuth;
import com.andong.domain.vo.AdminAuthVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 王海云
* @description 针对表【admin_auth(管理员权限表)】的数据库操作Mapper
* @createDate 2024-01-16 20:49:22
* @Entity com.andong.domain.entity.AdminAuth
*/
@Mapper
public interface AdminAuthMapper extends BaseMapper<AdminAuth> {

    @Select("SELECT auth_id, `name` FROM admin_auth_view WHERE admin_id = #{id}")
    List<AdminAuthVO> getAuthById(Long id);
}




